#include <iostream>
#include "point.h"

#include "fenetreopengl.h"
#include <QList>
#include <QApplication>
#include <QVBoxLayout>
#include <QLCDNumber>
#include <QSlider>

/*
 * Classse permettant de tester une fenetre opengl
 *
 */
class MyWidget : public QWidget
{
public:
    MyWidget(QWidget *parent = 0);
};
MyWidget::MyWidget(QWidget *parent)
    : QWidget(parent)
{
    FenetreOpengl *window = new FenetreOpengl(60, this, "Fenetre opengl");

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(window, 1);

    setLayout(layout);
    window->setFocus();
}


//Fonction principale
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    MyWidget widget;
    widget.show();


    return app.exec();
}










